home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacUser Mac Bin 40
/
MACUSER-MACBIN40A-1997-03.ISO.7z
/
MACUSER-MACBIN40A-1997-03.ISO
/
DEMO
/
SecretsJ DEMO
/
KING.DIR
/
00352_Script_352
< prev
next >
Wrap
Text File
|
1996-12-04
|
3KB
|
133 lines
on startMovie
global mylist,lightstate,doors,eggwater,clock
set mylist = []
set clock = 0
sdset
end
on stopmovie
sdsv
end
on idle
set tsp = checkcur(43)
case tsp of
38:docur(2)
39:docur(3)
40:docur(1)
41:docur(4)
42:docur(5)
43:docur(5)
-1:docur(0)
end case
chmenu
end idle
on push spriten, cstn, nstn
if the membernum of sprite spriten = cstn then
puppetsound "push"
set the membernum of sprite spriten = nstn
updatestage
else
puppetsound "push"
set the membernum of sprite spriten = cstn
updatestage
end if
end push
on pushtile spriten, cstn, nstn,mid
puppetsound "flip"
set temp = the membernum of sprite spriten
set the membernum of sprite spriten = mid
updatestage
starttimer
repeat while the timer <5
nothing
end repeat
if temp = cstn then
set the membernum of sprite spriten = nstn
updatestage
else
set the membernum of sprite spriten = cstn
updatestage
end if
end pushtile
on checkwin
global eggwater
set broken = false
repeat with i = 2 to 33
if i = 6 or i = 8 or i =13 or i =20 or i =24 or i =28 or i =32 then
nothing
else
if the membernum of sprite i > 835 then
set broken = true
exit repeat
end if
end if
end repeat
if broken = false then
if the membernum of sprite 20 = 865 then
if the membernum of sprite 32 = 869 then
if the membernum of sprite 24 = 877 then
if the membernum of sprite 28 = 873 then
if the membernum of sprite 34 = 702 then
if the membernum of sprite 6 = 840 then
if the membernum of sprite 8 = 842 then
if the membernum of sprite 13 = 847 then
puppetsound 3,910
updatestage
slow(20)
repeat with i = 2 to 34
puppetsprite i,false
end repeat
puppettransition 51,1,12,true
go to the frame + 1
set eggwater = true
puppetsound "open egg"
end if
end if
end if
end if
end if
end if
end if
end if
end if
end checkwin
on typewriter
set stroke = the key
set ln to length(field 915)
if chartonum(stroke) <> 8 then
put stroke after char ln of field 915
put "*" before char 1 of field 921
set the loch of sprite 2 = the loch of sprite 2 + 17
updatestage
else
if ln < 1 then
set the loch of sprite 2 to 20
nothing
else
delete the last char of field 915
delete the last char of field 921
set the loch of sprite 2 = the loch of sprite 2 - 17
updatestage
end if
end if
end